package lab2.text06;

/**
 * Created by Administrator on 2017/10/15.
 */
public class Triangle {
    double a;
    double b;
    double c;
    boolean judge;
    double perimeter;
    double area;
    double perimeter() {
        return a + b + c;
    }
        double area(){
            double high;
            high=(a+b+c)/2;
            return Math.sqrt(high*(high-a)*(high-b));
    }
    void judge(){
            if(a+b<c||a+c<b||b+c<a)
                System.out.println("不能构成三角形");
            else
                System.out.println("能构成三角形");
    }

    public static void main(String[] args) {

    }
}
